package com.osgix.common.pojo;

import java.io.Serializable;

public class Role implements Serializable {

	private static final long serialVersionUID = -7516478788779305445L;

	/**
	 * 角色ID
	 */
	private String roleId = "";

	/**
	 * 角色名称
	 */
	private String roleName = "";

	/**
	 * 上级角色ID
	 */
	private String parentRoleId;

	/**
	 * 角色描述
	 */
	private String description = null;

	/**
	 * 状态，0：正常；1：内置
	 */
	private int status = 0;

	/**
	 * 构造函数
	 *
	 */
	public Role() {

	}

	/**
	 * 构造函数
	 * @param id
	 * @param name
	 * @param super_id
	 * @param node
	 */
	public Role(String id, String name, String super_id, String node) {
		this(id, name, super_id, node, 0);
	}

	/**
	 * 构造函数
	 */
	public Role(String id, String name, String parentRoleId, String description, int status) {
		this.roleId = id;
		this.roleName = name;
		this.parentRoleId = parentRoleId;
		this.description = description;
		this.status = status;
	}

	public Object clone() {
		return new Role(roleId, roleName, parentRoleId, description, status);
	}

	public String toString() {
		return roleId + "/" + roleName + "/" + parentRoleId + "/" + description + "/" + status;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getParentRoleId() {
		return parentRoleId;
	}

	public void setParentRoleId(String parentRoleId) {
		this.parentRoleId = parentRoleId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}